package exec;

public class Exec03_2 {

    public static void main(String[] args) {
        //
        int[] arr = {12, 23, 34, 19, 25, 17, 23, 17, 19};
        int[] newArr = new int[arr.length];
        // 判断 newArr 是否有当前元素 没有的话 放进去，有的话不操作
        int count = 0;
        outer:
        for (int i = 0; i < arr.length; i++) {
//            boolean flag = false;
            for (int j = 0; j < count; j++) {
                if (arr[i] == newArr[j]) {
//                    flag = true;
                    continue outer;
                }
            }
//            if (!flag) {
            newArr[count] = arr[i];
            count++;
//            }
        }

        for (int i = 0; i < count; i++) {
            System.out.println(newArr[i]);
        }

    }
}
